<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates a 3D effect</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.settype.html">Imagick::setType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.shadowimage.html">Imagick::shadowImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagick.shadeimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::shadeImage</h1>
  <p class="verinfo">(PECL imagick 2.0.0)</p><p class="refpurpose"><span class="refname">Imagick::shadeImage</span> &mdash; <span class="dc-title">Creates a 3D effect</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.shadeimage-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>Imagick::shadeImage</strong></span>
    ( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$gray</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$azimuth</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$elevation</code></span>
   )</div>


  <p class="para rdfs-comment">
   Shines a distant light on an image to create a three-dimensional effect.
   You control the positioning of the light with azimuth and elevation;
   azimuth is measured in degrees off the x axis and elevation is measured
   in pixels above the Z axis.
   此方法在Imagick基于ImageMagick 6.2.9以上版本编译时可用。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.shadeimage-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">gray</code></em></dt>

     <dd>

      <p class="para">
       A value other than zero shades the intensity of each pixel.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">azimuth</code></em></dt>

     <dd>

      <p class="para">
       Defines the light source direction.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">elevation</code></em></dt>

     <dd>

      <p class="para">
       Defines the light source direction.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.shadeimage-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>。
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-imagick.shadeimage-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws ImagickException on failure.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.settype.html">Imagick::setType</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.shadowimage.html">Imagick::shadowImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
